/**
 * Created by oneminute on 8/30/14.
 */

var servers = require("./servers_config");

exports = module.exports = {
    url: "amqp://" + servers.rabbitmq.username + ":" + servers.rabbitmq.password + "@" +
        servers.rabbitmq.host + ":" + servers.rabbitmq.port,
    server: {
        host: servers.rabbitmq.host,
        port: servers.rabbitmq.port,
        login: servers.rabbitmq.username,
        password: servers.rabbitmq.password,
        connectionTimeout: 0,
        authMechanism: "AMQPLAIN",
        vhost: '/',
        ssl: {
            enabled: false
        },
        clientproperties: {
            applicationname: "iwant_server"
        }
    },
    log: {
        exchange: "iwant.log",
        routingKey: "iwant.log",
        publishOpts: {
            deliveryMode: 2
        }
    }
};
